﻿using System;
using System.Collections.Generic;
using System.Text;

namespace TeamXpandLicence.ObjectExchange
{
    [Serializable]
    public class TrialLicenceDataObjectOut : ILicenceDataObjectOut
    {
        //private TimeSpan m_timeLeft;
        private int m_timeLeft;
        private LicenceType m_licenceType = LicenceType.None;

        public TrialLicenceDataObjectOut()
        { }

        public TrialLicenceDataObjectOut(/*TimeSpan timeLeft*/int timeLeft, LicenceType licenceType) 
            : this()
        {
            this.LicenceType = licenceType;
            //this.TimeLicenceLeft = timeLeft;
            this.m_timeLeft = timeLeft;
        }

        public  LicenceType LicenceType
        {
            get { return this.m_licenceType; }
            set { m_licenceType = value; }
        }

        public int TimeLicenceLeft
        {
            get { return this.m_timeLeft; }
            set { this.m_timeLeft = value;}
        }

        //public  TimeSpan TimeLicenceLeft
        //{
        //    get { return this.m_timeLeft; }
        //    set { this.m_timeLeft = value; }
        //}
    }
}
